import request from '@/utils/request.js'

export const GetSysRoleListByPage = (pageNum, pageSize, queryDto) => {
  return request.get(
    '/admin/system/sysRole/findByPage/' + pageNum + '/' + pageSize,
    queryDto
  )
}

export const SaveSysRole = (sysRole) => {
  return request.post('/admin/system/sysRole/save', sysRole)
}
export const updateSysRole = (sysRole) => {
  return request.post('/admin/system/sysRole/updateById', sysRole)
}

export const deleteSysRole = (sysRole) => {
  return request.delete('/admin/system/sysRole/delete/' + sysRole.id)
}

export const getAllRoleListApi = () => {
  return request.get('/admin/system/sysRole/findAllRoles')
}
